import java.util.*;
/**
 * Write a program that writes a 'starter' program
 * 
 * @author Amrita Mukherjee
 * @version 10/16/2012
 */
public class ProgramGenerator
{
   public static void main(String[] args)
    {
       Scanner keyboard = new Scanner(System.in);
       
       System.out.println(
       "This program will generate a new program (a class) for you.\n" +
       "Enter the new class name(ex. MyProgram):");
       
       //we cant use "class" as a variable because it's a recerved word
       String Klass = keyboard.nextLine();
       
       //Now generate the starter program
       System.out.println("public class" + Klass + "{");
       System.out.println(" public static void main(String[] args) {");
       System.out.println("     System.out.println(\"Hello World!\");");
       System.out.println(" }");
       System.out.println("}");
    }
}
/*
 * My test Sesssion:
 * This program will generate a new program (a class) for you.
Enter the new class name(ex. MyProgram):
MyProgram
public classMyProgram{
 public static void main(String[] args) {
     System.out.println("Hello World!");
 }
}

 */